package com.qingfeng.client.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
@ApiModel(value = "com.qingfeng.client.bean.ShoppingCart")
@Data
@TableName(value = "shopping_cart")
public class ShoppingCart {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 购物者id
     */
    @TableField(value = "buyer_id")
    @ApiModelProperty(value = "购物者id")
    private Long buyerId;

    /**
     * 商品id
     */
    @TableField(value = "goods_id")
    @ApiModelProperty(value = "商品id")
    private Long goodsId;

    /**
     * 数量
     */
    @TableField(value = "num")
    @ApiModelProperty(value = "数量")
    private Long num;

    /**
     * 加入购物车的时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "加入购物车的时间")
    private Long createTime;
}